<?php
/**
 * read.phtml
 * 
 * reading/modifying a single comment
 * 
 * @category    Madoqua
 * @package     Module
 * @subpackage  BlogAdmin
 */

$this->adminNavigation('comment', 'index');

?>
<div class="cols">
    <div class="col1">
     
        <h2>Comment</h2>
        
        <dl>
            <dt>
                Post
            </dt>
            <dd>
                <a href="<?php echo $this->url(array('slug' => $this->post->slug), 'post_read', true); ?>#comment-<?php echo $this->comment->id ?>">
                    <?php echo $this->post->title; ?>
                </a>
            </dd>
            
            <dt>
                Name
            </dt>
            <dd>
                <?php echo $this->comment->name; ?>
            </dd>
            
            <dt>
                Date
            </dt>
            <dd>
                <?php echo $this->date($this->comment->posted); ?>
            </dd>
                
            <dt>
                Email 
            </dt>
            <dd>
                <a href="mailto:<?php echo $this->comment->email; ?>">
                    <?php echo $this->comment->email; ?>
                </a>
            </dd>
            
            <dt>
                Content
            </dt>
            <dd>
                <?php echo $this->comment->content; ?>
            </dd>
        </dl>   
    </div>
        
    <div class="col2">
        <h2>Spam control</h2>
        <?php if ($this->comment->spam) : ?>
        <p>
            Madoqua thinks this comment is spam.
        </p>
        <?php else : ?>
        <p>
            Madoqua thinks this is a genuine comment.
        </p>
        <?php endif; ?>   
        
    </div> 
</div>